package com.llc.spring.cloud.eureka.client.configuration;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * time 2018/8/21 10:28
 *
 * @author xiaojie.zhu <br>
 */
@Configuration
public class WebConfiguration {

    @Bean
    public FilterRegistrationBean<LoggerFilter> filterRegistrationBean(){
        FilterRegistrationBean bean = new FilterRegistrationBean(new LoggerFilter());
        bean.addUrlPatterns("/*");
        return bean;
    }
}
